package com.itheima.service.impl;

import com.itheima.domain.Employee;
import com.itheima.mapper.EmployeeMapper;
import com.itheima.service.EmployeeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: hsp
 * @Date: 2022/12/11-12-11-16:43
 * @Description: com.itheima.service.impl
 * @version: 1.0.0
 */
@Service
public class EmployeeServiceImpl implements EmployeeService {

    @Resource
    private EmployeeMapper employeeMapper;

    /**
     * 查询员工列表
     * @return
     */
    @Override
    public List<Employee> findAll() {
        return employeeMapper.selectList(null);
    }

}
